/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VolPro.Entity.SystemModels;

namespace VolPro.Entity.DomainModels
{
    [Entity(TableCnName = "生产订单",TableName = "productionorders",DBServer = "SmesDbContext")]
    public partial class productionorders:SmesEntity
    {
        /// <summary>
       ///主键，自增ID
       /// </summary>
       [Key]
       [Display(Name ="主键，自增ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int OrderID { get; set; }

       /// <summary>
       ///计划编号
       /// </summary>
       [Display(Name ="计划编号")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string PlanNo { get; set; }

       /// <summary>
       ///订单日期，默认当前时间
       /// </summary>
       [Display(Name ="订单日期，默认当前时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? OrderDate { get; set; }

       /// <summary>
       ///订单状态 -1作废0创建1执行2暂停3完成
       /// </summary>
       [Display(Name ="订单状态 -1作废0创建1执行2暂停3完成")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Status { get; set; }

       /// <summary>
       ///优先级 数字越大优先级越高
       /// </summary>
       [Display(Name ="优先级 数字越大优先级越高")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Priority { get; set; }

       /// <summary>
       ///客户名称
       /// </summary>
       [Display(Name ="客户名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string CustomerName { get; set; }

       /// <summary>
       ///备注信息
       /// </summary>
       [Display(Name ="备注信息")]
       [MaxLength(250)]
       [Column(TypeName="nvarchar(250)")]
       [Editable(true)]
       public string Memo { get; set; }

       
    }
}